//通办清单梳理的js api
import request from "@/utils/request";

/**
 * 根据材料oid查询审查要点主要数据集合
 * @param {*} materialOid
 * @returns
 */
export function queryByMaterialOid(materialOid) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/yxpz/examinePoint/queryByMaterialOid",
    method: "get",
    params: {
      materialOid: materialOid
    }
  });
}

/**
 * 保存审查要点数据
 * @param {*} data
 * @returns
 */
export function saveExaminePointVo(data) {
  return request({
    url: process.env.VUE_APP_KSTB_ROUTE_PATH + "/yxpz/examinePointInfo/save",
    method: "post",
    headers: {
      "Content-Type": "application/json;charset=UTF-8"
    },
    data: data
  });
}

/**
 * 根据材料oid和附件oid删除审查要点数据
 * @param {*} materialOid
 * @param {*} attaOid
 */
export function deleteByMaterialOidAndAttaOid(materialOid, attaOid) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/yxpz/examinePoint/deleteByMaterialOidAndAttaOid",
    method: "get",
    params: {
      materialOid: materialOid,
      attaOid: attaOid
    }
  });
}
